package org.gp.core.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.gp.core.entity.Bill;
import org.gp.core.entity.result.ActivityCost;
import org.gp.core.entity.result.ActivityCount;
import org.gp.core.entity.result.ActivityWeekNum;

import java.util.List;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author LuoLiang
 * @since 2017-02-27
 */
public interface BillMapper extends BaseMapper<Bill> {
    List<ActivityCount> selectPieChart(Integer userId);//查出饼状图数据

    List<ActivityCost> selectBarChart(Integer userId);//查出柱状图数据

    List<ActivityWeekNum> countActivityNumByWeek(@Param("userId") Integer userId, @Param("label") Integer label);//查询指定类型的活动数量
}